package cn.longge.mapper;

import cn.longge.entity.Transfer;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface TransferMapper extends Mapper<Transfer> {

    @Select("select t.create_date,t.content,u.name as oprate_user_name,u.phone \n" +
            "from transfer t,sys_user u \n" +
            "where t.del_flag = 0 \n" +
            "and t.work_order_id = #{woId} \n" +
            "and t.oprate_user_id = u.id\n" +
            "order by t.create_date desc")
    List<Transfer> selectTransfer(int woId);
}